/*
 * @Author: Dweriout 2428458948@qq.com
 * @Date: 2022-06-14 17:34:32
 * @LastEditors: Dweriout 2428458948@qq.com
 * @LastEditTime: 2022-06-17 17:11:58
 * @FilePath: \nien-vue3-admin\src\api\customer\accountPeriodData.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 分页查询客户账期数据
export function accountPeriodList(data) {
  return request({
    url: 'system/custAccountPeriod/list',
    method: 'post',
    data,
  })
}
// 根据id查询客户账期数据
export function accountPeriodDetail(id) {
  return request({
    url: `system/custAccountPeriod/queryById/${ id }`,
    method: 'get',
  })
}
// 修改客户账期数据
export function updateAccountPeriod(data) {
  return request({
    url: '/system/custAccountPeriod/edit',
    method: 'put',
    data,
  })
}
// 删除客户账期数据
export function deleteAccountPeriod(id) {
  return request({
    url: `/system/custAccountPeriod/deleteById/${ id }`,
    method: 'delete',

  })
}
// 新增客户账期数据
export function addAccountPeriod(data) {
  return request({
    url: '/system/custAccountPeriod/add',
    method: 'post',
    data,
  })
}